
var timeBind = function(e) {
$('#' + e).datetimepicker({
  format: 'yyyy-mm-dd hh:ii',
  weekStart: 1,
  language: 'zh-CN',
});
};
function today () {
  var currentTime = new Date();
  var year = currentTime.getFullYear();
  var month = currentTime.getMonth() + 1;
  var day = currentTime.getDate();
  var hour = currentTime.getHours();
  var min = currentTime.getMinutes();
  return year + "-" + month + "-" + day + "  " + hour + ":" + min;
};
$('#datetime').val(today());
$('.form_datetime').datetimepicker({format: 'yyyy-mm-dd hh:ii'});
$('.report_form_datetime').datetimepicker({
  language:'zh-CN',  
  minView: "month",//设置只显示到月份
  format : "yyyy-mm-dd",//日期格式
  autoclose:true,//选中关闭
  todayBtn: true//今日按钮
 });